package com.jzit168.library_utils

import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions

/**
 *@Desc:
 *@Author: Android Developer
 *@Date: 2020/10/16
 *
 **/

//普通加载
fun load(context: Context, url: Any, imageView: ImageView) {
    Glide.with(context.applicationContext)
        .load(url)
        .into(imageView)
}

fun loadCircle(context: Context, url: Any, imageView: ImageView) {
    Glide.with(context.applicationContext)
        .load(url)
        .apply(RequestOptions.circleCropTransform())
        .into(imageView)
}